<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户管理</title>
<link rel=stylesheet type="text/css" href="Public/js/datatables/css/demo_page.css" />
<link rel=stylesheet type="text/css" href="Public/js/datatables/css/demo_table_jui.css" />
 <script type="text/javascript" src="Public/js/datatables/js/jquery.js"></script>
 <script type="text/javascript" src="Public/js/datatables/js/jquery.dataTables.js"></script>
 <script type="text/javascript" src="Public/js/jspopup/popup.js"></script>
  <script type="text/javascript" src="Public/js/user.js"></script>
 <literal>
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
	var oTable = $('#example').dataTable( {
		"bProcessing": true,
		"sAjaxSource": "?m=Admin&a=getUserInfo",
		"bJQueryUI":false,
		"bJQueryUI": true,
		"sPaginationType": "full_numbers",
		 "oLanguage": {  
                  "sProcessing": "正在加载中......",  
                  "sLengthMenu": "每页显示 _MENU_ 条记录",  
                  "sZeroRecords": "正在加载中......",  
                  "sEmptyTable": "表中无数据存在！",  
                  "sInfo": "当前显示 _START_ 到 _END_ 条，共 _TOTAL_ 条记录",  
                 "sInfoFiltered": "数据表中共为 _MAX_ 条记录",  
                  "sSearch": "搜索",  
                  "oPaginate": {  
                     "sFirst": "首页",  
                      "sPrevious": "上一页",  
                      "sNext": "下一页",  
                      "sLast": "末页" 
                  }  

              } //多语言配置  
	} );
	$("#addUser").bind("click",function(){
		addUserDialog();
	});
} );
/**
 * 
	$("#alert_button").click( function() {
		jAlert('This is a custom alert box', 'Alert Dialog');
	});
	
	$("#confirm_button").click( function() {
		jConfirm('Can you confirm this?', 'Confirmation Dialog', function(r) {
			jAlert('Confirmed: ' + r, 'Confirmation Results');
		});
	});
	
	$("#prompt_button").click( function() {
		jPrompt('Type something:', 'Prefilled value', 'Prompt Dialog', function(r) {
			if( r ) alert('You entered ' + r);
		});
	});
	
	$("#alert_button_with_html").click( function() {
		jAlert('You can use HTML, such as <strong>bold</strong>, <em>italics</em>, and <u>underline</u>!');
	});
	
	$(".alert_style_example").click( function() {
		$.alerts.dialogClass = $(this).attr('id'); // set custom style class
		jAlert('This is the custom class called &ldquo;style_1&rdquo;', 'Custom Styles', function() {
			$.alerts.dialogClass = null; // reset to default
		});
	});
 */
function editUser(id){
	 ShowIframe(id);
}
function delUser(id){
	pConfirm("信息提示","确认要删除？",id);
}
function ShowIframe(id)
{
	var url="?m=Admin&a=userEdit&pid="+id;
	pDialog("编辑用户",url);
}
function addUserDialog(){
	var url="?m=Admin&a=userAdd";
	pDialog("添加用户",url);
}

function ShowCallBack(para){
	var pid=para["pid"];
	var url="?m=Admin&a=userDel&pid="+pid;
	$.ajax({
		   type: "GET",
		   url: url,
		   success: function(msg){
		     var _ok=parseInt(msg);
		     if(_ok>=1){
		    	 pAlertN("信息提示","删除用户成功");
		     }else{
		    	 pAlertN("信息提示","删除用户失败"); 
		     }
		   }
		});
}
</script>
</literal>
<style>
<style type="text/css">
<!--
body {
	margin-left: 3px;
	margin-top: 0px;
	margin-right: 3px;
	margin-bottom: 0px;
	font-size: 12;
}
.STYLE1 {
	color: #e1e2e3;
	font-size: 12px;
}
.STYLE6 {color: #000000; font-size: 12; }
.STYLE10 {color: #000000; font-size: 12px; }
.STYLE19 {
	color: #344b50;
	font-size: 12px;
}
.STYLE21 {
	font-size: 12px;
	color: #3b6375;
}
.STYLE22 {
	font-size: 12px;
	color: #295568;
}
.full_width table{
	font-size: 12px;
	text-align:center;
}
.full_width div{
	font-size: 12px;
}
-->
</style>
</style>
</head>
<body >
<div id="container" >
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="24" bgcolor="#353c44"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="6%" height="19" valign="bottom"><div align="center"><img src="Public/tpl-default/images/tb.gif" width="14" height="14" /></div></td>
                <td width="94%" valign="bottom"><span class="STYLE1"> 管理人员基本信息列表</span></td>
              </tr>
            </table></td>
            <td><div align="right"><span class="STYLE1">
              <span id="addUser" ><img src="Public/tpl-default/images/add.gif" width="10" height="10"  /> <span style="cursor:pointer">添加用户</span></span>   &nbsp; <!--  <img src="Public/tpl-default/images/del.gif" width="10" height="10" /> <span style="cursor:pointer">删除 </span>   &nbsp;&nbsp;<img src="Public/tpl-default/images/edit.gif" width="10" height="10"  /> <span style="cursor:pointer">编辑   </span>&nbsp;</span>--><span class="STYLE1"> &nbsp;</span></div></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
  <td>
	<div id="dynamic" class="full_width">
		<table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
			<thead>
				<tr>
					<th width="10%" >编号</th>
					<th width="20%" >用户</th>
					<th width="20%" >密码</th>
					<th width="20%" >联系方式</th>
					<th width="20%" >时间</th>
					<th width="10%" >操作</th>
				</tr>
			</thead>
		</table>
	</div>
	<div class="spacer" style="padding-top:10px"></div>
	</td></tr></table>
</div>
</body>
</html>